home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / GNUUCP_2 / SOURCE / UUXQT_TO.C < prev    next >
C/C++ Source or Header  |  1989-08-14  |  614b  |  34 lines

  1. /*  uuxqt.c: Lol Grant. 23rd. Sept 1987.
  2.          read uucp C.<hostname>XXXXX files and execute the
  3.          commands in them.
  4. */
  5.  
  6. #include "includes.h"
  7. #include "uucp.h"
  8. #include "rmail_proto.h"
  9.  
  10. #define RMAIL
  11.  
  12. main(argc, argv)
  13. int argc;
  14. char **argv;
  15. {
  16.     int i;
  17.     int debug;
  18.     for (i = 1; i < argc; i++)
  19.         {
  20.             if (argv[i][0] != '-')
  21.                 break;
  22.             switch (argv[i][1])
  23.                 {
  24.                     default:
  25.                         printf("uuxqt: unknown flag ignored\n");
  26.                     case 'x':
  27.                         debug = atoi(&argv[i][2]);
  28.                         printf("uuxqt: debug level set to %d\n", debug);
  29.                         break;
  30.                     }
  31.             }
  32.     return(uuxqt(debug));
  33.     }
  34.